<?php



class TabHistoriaCirugiaMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TabHistoriaCirugiaMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('xaman');

		$tMap = $this->dbMap->addTable('tab_historia_cirugia');
		$tMap->setPhpName('TabHistoriaCirugia');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('NRO_HISTORIA', 'NroHistoria', 'string', CreoleTypes::BIGINT, true, null);

		$tMap->addForeignPrimaryKey('CF_CIRUGIA', 'CfCirugia', 'string' , CreoleTypes::VARCHAR, 'tab_cirugias', 'ID_CIRUGIA', true, 5);

		$tMap->addColumn('CAUSAS', 'Causas', 'string', CreoleTypes::VARCHAR, true, 100);

		$tMap->addPrimaryKey('FECHA_CIRUGIA', 'FechaCirugia', 'double', CreoleTypes::DECIMAL, true, 10);

	} 
} 